﻿using System.Data.Entity.Migrations;

namespace Weapp.Data
{
    class WeappContextMigrationConfiguration : DbMigrationsConfiguration<WeappContext>
    {
        public WeappContextMigrationConfiguration()
        {
            this.AutomaticMigrationsEnabled = true;
            this.AutomaticMigrationDataLossAllowed = true;
        }

        #if DEBUG
        protected override void Seed(WeappContext context)
        {
            new WeapDataSeeder(context).Seed();
        }
        #endif
    }
}
